package com.wugh.fast.module.async.dto;

import lombok.Data;

/**
 * 说明:
 *
 * @author wugh
 * @date 2020/4/10 16:13
 */
@Data
public class CreateProcessDTO {
    private String taskId;
    private String operator;
    private Object data;

    public String getOperator() {
        if (operator == null) {
            //如果没有操作者,默认用线程名称作为操作者
            operator = Thread.currentThread().getName();
        }
        return operator;
    }
}
